﻿<enum-field-mappings>
  <!--
  This example converts the constants Fragment_id, Fragment_name,
  and Fragment_tag from android.support.v4.app.FragmentActivity.FragmentTag
  to an enum called Android.Support.V4.App.FragmentTagType with values
  Id, Name, and Tag.
  
  <mapping jni-class="android/support/v4/app/FragmentActivity$FragmentTag" clr-enum-type="Android.Support.V4.App.FragmentTagType">
    <field jni-name="Fragment_name" clr-name="Name" value="0" />
    <field jni-name="Fragment_id" clr-name="Id" value="1" />
    <field jni-name="Fragment_tag" clr-name="Tag" value="2" />
  </mapping>
  -->
  <mapping clr-enum-type="Hoho.Android.UsbSerial.Driver.Parity" jni-interface="com/hoho/android/usbserial/driver/UsbSerialPort">
    <field clr-name="None" jni-name="PARITY_NONE" value="0" />
    <field clr-name="Odd" jni-name="PARITY_ODD" value="1" />
    <field clr-name="Even" jni-name="PARITY_EVEN" value="2" />
    <field clr-name="Mark" jni-name="PARITY_MARK" value="3" />
    <field clr-name="Space" jni-name="PARITY_SPACE" value="4" />
  </mapping>

  <mapping clr-enum-type="Hoho.Android.UsbSerial.Driver.StopBits" jni-interface="com/hoho/android/usbserial/driver/UsbSerialPort">
    <field clr-name="One" jni-name="STOPBITS_1" value="1" />
    <field clr-name="OnePointFive" jni-name="STOPBITS_1_5" value="3" />
    <field clr-name="Two" jni-name="STOPBITS_2" value="2" />
  </mapping>

  <mapping clr-enum-type="Hoho.Android.UsbSerial.Driver.FlowControl" jni-interface="com/hoho/android/usbserial/driver/UsbSerialPort">
    <field clr-name="None" jni-name="FLOWCONTROL_NONE" value="0" />
    <field clr-name="RtsCtsIn" jni-name="FLOWCONTROL_RTSCTS_IN" value="1" />
    <field clr-name="RtsCtsOut" jni-name="FLOWCONTROL_RTSCTS_OUT" value="2" />
    <field clr-name="XOnXOffIn" jni-name="FLOWCONTROL_XONXOFF_IN" value="4" />
    <field clr-name="XOnXOffOut" jni-name="FLOWCONTROL_XONXOFF_OUT" value="8" />
  </mapping>

  <mapping clr-enum-type="Hoho.Android.UsbSerial.Driver.DataBits" jni-interface="com/hoho/android/usbserial/driver/UsbSerialPort">
    <field clr-name="Five" jni-name="DATABITS_5" value="5" />
    <field clr-name="Six" jni-name="DATABITS_6" value="6" />
    <field clr-name="Seven" jni-name="DATABITS_7" value="7" />
    <field clr-name="Eight" jni-name="DATABITS_8" value="8" />
  </mapping>
</enum-field-mappings>
